<template>
  <div class="user-card">
    <div class="flex">
      <div class="icon-logo">
         <PreviewImg :src="nowRowData.beforePhotoIds||nowRowData.inService"></PreviewImg>
      </div>
      <div class="header-content">
        <p class="text-title">政府购买</p>
        <p class="text-label">{{nowRowData.serviceItemNames||nowRowData.serviceItemName}}</p>
      </div>
    </div>
    <div class="user-info">
      <p class="flex align-center gap-20">
        <span>{{nowRowData.serviceObjectName || nowRowData.name}}</span>
        <span class="text-tag fc">服务对象</span>
      </p>
      <p>联系电话：{{nowRowData.serviceObjectPhone || nowRowData.phoneNumber}}</p>
      <p>服务组织名称：{{nowRowData.organizationName}}</p>
      <p class="flex align-center gap-20">
        <span>{{nowRowData.waiterServiceName || nowRowData.userName}}</span>
        <span class="text-tag fc">服务员</span>
      </p>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps<{
  nowRowData?:any
}>();

</script>

<style scoped lang="scss">
.user-card {
  color: #fff;
  .icon-logo {
    width: calc(50% - 20px);
    height: 94.82px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.709);
    position: relative;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .header-content {
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    .text-title {
      font-family: "Microsoft YaHei Bold";
      font-weight: 700;
      font-size: 14px;
      color: #fff;
      text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    }
    .text-label {
      font-family: "Microsoft YaHei";
      font-weight: 400;
      font-size: 14px;
      text-align: left;
      color: #fff;
      text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    }
  }
  .user-info {
    padding: 10px;
    color: #fff;
    font-family: "Microsoft YaHei";
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.05px;
    text-align: left;
    line-height: 20px;
    .text-tag {
      background-color: rgba(25, 252, 222, 0.1);
      color: rgba(25, 252, 222, 1);
      border-radius: 2px;
      padding: 4px 9px;
      min-width: 42px;
      border-radius: 11px;
      font-family: "Microsoft YaHei";
      font-weight: 400;
      font-size: 10px;
      letter-spacing: 0.05px;
    }
  }
  .nav-list {
    display: flex;
    align-items: center;
    margin: 10px;
    border-top: 1px dashed #ffffff90;
    padding-top: 10px;
    &-item {
      flex: 1;
      display: flex;
      gap: 6px;
      .icon-img {
        width: 29.66px;
        height: 29.66px;
        background: transparent;
      }
      .item-content {
        .text-label {
          font-family: "Microsoft YaHei";
          font-weight: 400;
          font-size: 10px;
          letter-spacing: 0.05px;
          color: #fff;
        }
        .text-value {
          font-family: "MS PGothic";
          font-weight: 400;
          font-size: 16px;
          color: #16c8ff;
          text-shadow: 0 3px 6px rgba(22, 200, 255, 0.33);
        }
      }
    }
  }
}
</style>
